import layoutHeaderAside from '@/layout/header-aside'

const meta = {auth: true}

export default {
    path: '/upms',
    name: 'upms',
    meta,
    redirect: {name: 'upms-user'},
    component: layoutHeaderAside,
    children: (pre => [
        {
            path: 'user',
            name: `${pre}user`,
            component: () => import('@/pages/upms/user'),
            meta: {...meta, title: '用户管理'}
        },
        {
            path: 'menu',
            name: `${pre}menu`,
            component: () => import('@/pages/upms/menu'),
            meta: {...meta, title: '菜单管理'}
        },
        {
            path: 'role',
            name: `${pre}role`,
            component: () => import('@/pages/upms/role'),
            meta: {...meta, title: '角色管理'}
        },
        {
            path: 'dept',
            name: `${pre}dept`,
            component: () => import('@/pages/upms/dept'),
            meta: {...meta, title: '部门管理'}
        }
    ])('upms-')
}
